package org.sanmao.wyj.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(autoResultMap = true)
public class User {
    @TableId
    private int uid;
    private String username;
    private String password;
    private String name;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    private double balance;
    private String phonenum;

    @TableField(exist = false)
    private int orderCount;
}
